package com.train.classeval.mapper;

import com.train.classeval.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xs
 * @since 2021-10-08
 */
public interface MenuMapper extends BaseMapper<Menu>{

    /**
     * 通过用户不同权限显示不同菜单
     * @param uid
     * @return
     */
    List<Menu> selectMenuByUserRole(Integer uid);

}
